import request from '@/config/axios'
import { SystemSetting } from '@/api/system/setting/types'

export const getSystemSettingApi = (): Promise<IResponse<SystemSetting>> => {
  return request.get({ url: '/system/setting' })
}

export const updateSystemSettingApi = (data: SystemSetting): Promise<IResponse<SystemSetting>> => {
  return request.post({ url: '/system/setting/update', data })
}
